package com.example.demo.converter;

import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;

import java.sql.Date;


@Component
public class StringToDateConverter implements Converter<String, Date> {

    @Override
    public Date convert(String s) {
        Date time = Date.valueOf( s ) ;
        return time;
    }
}
